{% extends "public/layout.html" %}

{% block body %}
    {% if status == 0 %}
        <h1><center>操作成功</center></h1>
    {% else %}
        <h1><center>操作失败: </center></h1>
        <h3><center>{{ errmsg }}</center></h3>
    {% endif %}
{% endblock %}

{% block js %}
    <script>
        var status = {{ status }};
        var next_url = "{{ next_url }}";
        var timeout = 1000;
        $(function() {
            if (status != 0) {
                timeout = 5000;
            }
            setTimeout(function() {
                window.location.href = next_url;
            }, timeout)
        })
    </script>
{% endblock %}